module.exports = app => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  return app.model.define('user', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    username: STRING(16),
    password: STRING(32),
    salt: STRING(8),
    created_at: DATE,
    updated_at: DATE,
  });
};
